package com.aotao.springboot.Tools;

import com.aotao.springboot.domain.Article;
import com.aotao.springboot.domain.ArticleType;
import com.aotao.springboot.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleTools {
    @Autowired
    private ArticleService articleService;

    public List<ArticleType> queryAllTypes(){
        return articleService.queryAllTypes();
    }

    public List<Article> queryAllArticles(){
        return articleService.getArticle();
    }
}
